Relative rotation of planets